package com.site.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.site.domain.BannerInfo;
import com.site.persistence.BannerInfoMapper;
import com.site.service.BannerInfoService;

/**
 * Purpose: BannerInfo
 * @author: liangjun
 * @since: JDK 1.6
 * @date: 2015年5月25日
 */
@Service
public class BannerInfoServiceImpl implements BannerInfoService {
	
	@Autowired
	private BannerInfoMapper bannerinfoMapper;

	public List<BannerInfo> findBannerInfo() throws Exception {
		// TODO Auto-generated method stub
		return bannerinfoMapper.findBannerInfo();
	}

	public BannerInfo getBannerInfoById(int id) throws Exception {
		// TODO Auto-generated method stub
		return bannerinfoMapper.getBannerInfoById(id);
	}

	public void addBannerInfo(BannerInfo bannerInfo) throws Exception {
		// TODO Auto-generated method stub
		bannerinfoMapper.addBannerInfo(bannerInfo);
	}

	public void updBannerInfo(BannerInfo bannerInfo) throws Exception {
		// TODO Auto-generated method stub
		bannerinfoMapper.updBannerInfo(bannerInfo);
	}

	public void delBannerInfoById(int id) throws Exception {
		// TODO Auto-generated method stub
		bannerinfoMapper.delBannerInfoById(id);
	}	

}
